package cn.xiaopengstack.domain.activity.service.quota.rule.chain;

import cn.xiaopengstack.domain.activity.model.entity.ActionRuleMatterEntity;
import cn.xiaopengstack.domain.activity.service.quota.rule.factory.DefaultActivityActionChainFactory;
import org.springframework.stereotype.Component;

/**
 * @author jiangyangang
 */
@Component
public class DefaultActionChain extends AbstractActionChain{
    @Override
    public boolean doChain(ActionRuleMatterEntity ruleMatter) {
        return true;
    }

    @Override
    public DefaultActivityActionChainFactory.ActionEnum action() {
        return DefaultActivityActionChainFactory.ActionEnum.DEFAULT;
    }

    @Override
    public int getOrder() {
        return action().getOrder();
    }
}
